<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
    <head>
    	<title><?=$_CONFIG['siteName'];?></title>
    	<script type="text/javascript" src="tpl/design/jquery.min.js"></script>
    	<script type="text/javascript" src="tpl/design/jquery.radioSwitch.js"></script>

    	<script type="text/javascript" charset="utf-8">
    		$(document).ready(function() {
    		    $(".case-light").radioSwitch();
    		    $(".case-dark").radioSwitch({speed:200, width: 75, track_bg_color:'#333'});
    		    $(".case-big").radioSwitch({track_bg_color:'#333'});
    		});
    	</script>
	<link rel="stylesheet" href="tpl/design/style.css" type="text/css" charset="utf-8" media="screen">
	<link rel="stylesheet" href="tpl/design/buttons.css" type="text/css" charset="utf-8" media="screen">
<?php if(isset($type) && $type == "ADMIN"):?>
	<script language="javascript">
	function DeleteFile(id_file)
	{
		if (confirm('Supprimer ce fichier ?'))
		{
			window.location.href='<?=$_SERVER['PHP_SELF']."?del=";?>'+id_file;
		}
	}
	</script>

	<script language="javascript">
	function DeleteUser(id_user)
	{
		if (confirm('Supprimer cet utilisateur ?'))
		{
			window.location.href='<?=$_SERVER['PHP_SELF']."?deluser=";?>'+id_user;
		}
	}
	function DeleteGroup(id_group)
	{
		if (confirm('Supprimer ce groupe ?'))
		{
			window.location.href='<?=$_SERVER['PHP_SELF']."?delgroup=";?>'+id_group;
		}
	}
	function DeleteComp(id_group)
	{
		if (confirm('Supprimer cet ordinateur ?'))
		{
			window.location.href='<?=$_SERVER['PHP_SELF']."?delcomp=";?>'+id_group;
		}
	}
	</script>
<?php endif;?>
<?php if(isset($_GET['deluser']) || isset($_GET['delgroup']) || isset($_GET['del'])):?>
		<meta http-equiv="refresh" content="1; URL=<?=$_CONFIG['siteUrlSimple'].$_SERVER['PHP_SELF'];?>">
<?php endif;?>
<?php if(isset($_POST['updatefile'])):?>
		<meta http-equiv="refresh" content="1; URL=<?=$_CONFIG['siteUrlSimple'].$_SERVER['PHP_SELF'].'?id='.$_POST['id_file'];?>">
<?php endif;?>
    </head>
